Add TOTP MFA authentication support to Python driver#570
Conversation
|
Why Go Unit tests "Corresponding Go unit tests have been added to validate the TOTP-based authentication flow." ?? Please correct this in the description. |
mkottakota1
left a comment
There was a problem hiding this comment.
Overall, excellent structure — just minor cleanups needed for polish and safety
|
Corrected the description . |
|
Since, the Git pipelines are failing, I would like to see the local test suite results for the new and existing test cases to avoid regressions. |
|
Hi @mkottakota1 |
Fix the test case name |
Fix the test case name |
Hi Mani , I have updated the code based on your review comment. |
d60fecc to
f11da77
Compare
| cur.execute("GRANT AUTHENTICATION totp_auth TO totp_user") | ||
|
|
||
| # Generate TOTP | ||
| import pyotp |
There was a problem hiding this comment.
pyotp is imported 2 times.
| import os | ||
| import pyotp | ||
| import pytest | ||
| import vertica_python |
There was a problem hiding this comment.
Keep only required imports.
There was a problem hiding this comment.
Hi Mani , Kept only required import .
mkottakota1
left a comment
There was a problem hiding this comment.
- Reviewed the code changes and changes are look good to me.
243d519 to
93afc78
Compare
…e technical details
93afc78 to
0282333
Compare



Vertica supports TOTP-based authentication as part of multi-factor authentication (MFA).
To enable MFA for a new user, create the user with the following command:
CREATE USER ravi IDENTIFIED BY 'vertica' ENFORCEMFA;
After the user is created, the generated secret key must be added to a TOTP app like Microsoft Authenticator.
The TOTP app will generate a time-based code every 30 seconds, which is required during user login.
Screenshot of testcase :
